<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title th:replace="${title}">详情</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/typo.css" th:href="@{/css/typo.css}">
    <link rel="stylesheet" href="../../static/css/me.css" th:href="@{/css/me.css}">
    <link rel="stylesheet" href="../../static/css/admin.css" th:href="@{/css/admin.css}">
    <link rel="stylesheet" href="../../static/css/animate.css" th:href="@{/css/animate.css}">
    <link rel="stylesheet" href="../../static/lib/prism/prism.css" th:href="@{/lib/prism/prism.css}">
    <link rel="stylesheet" href="../../static/lib/tocbot/tocbot.css" th:href="@{/lib/tocbot/tocbot.css}">
    <link rel="stylesheet" href="../../static/lib/editormd/css/editormd.min.css"
          th:href="@{/lib/editormd/css/editormd.min.css}">
</head>
<body>
<!--导航-->
<nav th:fragment="menu(n)" class="ui left demo inverted vertical sidebar labeled icon menu">
    <h2 class="ui olive center aligned header item">后台管理</h2>
    <div class="item">
        <div class="menu">
            <a href="#" th:href="@{/admin/blogs}" class="item m-padded-tb font-size-large"
               th:classappend="${n==1} ? 'active'"><i class="book icon"></i>博客</a>
            <a href="#" th:href="@{/admin/types}" class="item item m-padded-tb font-size-large"
               th:classappend="${n==2} ? 'active'"><i class="idea icon"></i>分类</a>
            <a href="#" th:href="@{/admin/tags}" class="item item m-padded-tb font-size-large"
               th:classappend="${n==3} ? 'active'"><i class="tags icon"></i>标签</a>
            <a href="#" th:href="@{/index}" class="item item m-padded-tb font-size-large"
                                                  ><i class="reply icon"></i>退出后台</a>
        </div>
        <br>
        <br>
    </div>
    <div class="item">
        <div class="ui inline dropdown">
            <div class="text">
                <img class="ui avatar image" src=""
                     th:src="@{${session.user.avatar}}"><span th:text="${session.user.nickname}">YWJ</span>
                <i class="dropdown icon"></i>
            </div>
            <div class="menu">
                <a href="#" th:href="@{/admin/user}" class="item">更改信息</a>
                <a href="#" th:href="@{/admin/logout}" class="item">注销</a>
            </div>
        </div>
    </div>
</nav>

<!---JS--->
<th:block th:fragment="script">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/jquery.scrollto@2.1.2/jquery.scrollTo.min.js"></script>
    <script src="../../static/lib/prism/prism.js" th:src="@{/lib/prism/prism.js}"></script>
    <script src="../../static/lib/tocbot/tocbot.min.js" th:src="@{/lib/tocbot/tocbot.min.js}"></script>
    <script src="../../static/lib/qrcode/qrcode.min.js" th:src="@{/lib/qrcode/qrcode.min.js}"></script>
    <script src="../../static/lib/waypoints/jquery.waypoints.min.js"
            th:src="@{/lib/waypoints/jquery.waypoints.min.js}"></script>
    <script src="../../static/lib/editormd/editormd.min.js" th:src="@{/lib/editormd/editormd.min.js}"></script>
</th:block>
</body>
</html>